package com.eaoa.uc.address.bo;

import com.eaoa.base.EABaseBusinessObject;
import com.eaoa.dao.pub.PubAddressDAO;
import com.eaoa.vo.pub.PubAddress;

public class HraddressDeleteBO extends EABaseBusinessObject{
	
		private Long addressno;
		private static PubAddressDAO addressDAO = new PubAddressDAO();
		
		public HraddressDeleteBO(Long addressno) {
			super();
			this.addressno = addressno;
		}
		
		protected void performBusinessLogic(){
			PubAddress addr =  (PubAddress)addressDAO.loadAndLock(addressno);
			addr.setIslock("Y");
			addressDAO.update(addr);
		}
}
